package com.dtdream.emr;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;


public final class ToChar extends UDF {

    public String evaluate(boolean bo) {
        if (null != (Object) bo) {
            String ret = Boolean.toString(bo);
            return ret;
        } else {
            return "null";
        }
    }

    public String evaluate(int tmp) {
        if (null != (Object) tmp) {
            String ret = Integer.toString(tmp);
            return ret;
        } else {
            return "null";
        }
    }

    public String evaluate(double d) {
        if (null != (Object) d) {
            String ret = Double.toString(d);
            return ret;
        } else {
            return "null";
        }
    }

}

